import { UPDATEPAGEJOBLIST } from '../types/pagejoblist'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  detail: {
    pic: 'http://imgsize.52shangou.com/img/n/10/25/1540464111200_8079.jpeg',
    companyname: '京东JD'
  },
  joblist: [{}, {}, {}, {}, {}, {}],
  jobnumber: 5,
  animate: false
}

export default handleActions(
  {
    [UPDATEPAGEJOBLIST](state, action) {
      return {
        ...state,
        ...action.payload
      }
    }
  },
  Schema
)
